package io.gitee.cisumer.amazing.master;

import io.gitee.cisumer.amazing.Pixel;

/**
 * @author gitee.com/cisumer
 * @date create in 2022/3/17
 */
public class ColorSelection implements Pixel {
	@Override
	public int r(int i, int j) {
		return (i/SIZE)%255;
	}
	
	@Override
	public int g(int i, int j) {
		return (i/SIZE+SIZE/3)%255;
	}
	
	@Override
	public int b(int i, int j) {
		return (i/SIZE+SIZE/3)*2%255;
	}
	
	@Override
	public String name() {
		return "颜色选择器";
	}
}
